{% extends "admin_object_list.html" %}
{% load filters %}
{% block pageContent %}
    {% if object_list|length %}
    {% for object in object_list %}
    <div class="object">
        <div class="object_actions">
            {% ifnotequal labyrinth.root_node object %}
            <a href="{{ object.get_absolute_url }}root/" title="Set as Root {{ object|verboseName|capfirst }}" alt="Set as Root {{ object|verboseName|capfirst }}">
                <img src="{% url ol-root %}styles/admin/images/root_node.png" />
            </a>
            {% endifnotequal %}
            <a href="{{ object.get_absolute_url }}links/" title="{{ object|verboseName|capfirst }} Links" alt="{{ object|verboseName|capfirst }} Links">
                <img src="{% url ol-root %}styles/admin/images/links.png" />
            </a>
            <a href="javascript:deleteObject('{{ object.get_absolute_url }}delete/');" title="Delete {{ object|verboseName|capfirst }}" alt="Delete {{ object|verboseName|capfirst }}">
                <img src="{% url ol-root %}styles/admin/images/delete.png" />
            </a>
        </div>
        <div class="objectLinkBox" onclick="document.location = '{{ object.get_absolute_url }}';">
            <a href="{{ object.get_absolute_url }}" title="Edit {{ object|verboseName|capfirst }}" alt="Edit {{ object|verboseName|capfirst }}">
                {{ object }}
            </a>
        </div>
    </div>
    {% endfor %}
    <a href="create/" title="New {{ object_list.0|verboseName|capfirst }}" alt="New {{ object_list.0|verboseName|capfirst }}">
        <img src="{% url ol-root %}styles/admin/images/add.png" />
        New {{ object_list.0|verboseName|title }}
    </a>
    {% else %}
    <div class="object">
        0 entries found.
    </div>
    <a href="create/" title="New Node" alt="New Node">
        <img src="{% url ol-root %}styles/admin/images/add.png" />
        New Node
    </a>
    {% endif %}
{% endblock %}
